package cate.game.role.res.expire.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBExpireNotice;
import easy.java.dev.note.NoteField;

import java.util.Set;


@ClientMsg(title = "清除提醒  の 请求")
public class ExpireNoticeClearReq implements MsgInput {

    @NoteField(value = "清除提醒的功能id们")
    public Set<Integer> funcIds;

    @Override
    public MsgConfig conf() {
        return MsgIdBExpireNotice.CLEAR_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
       cc.getRole().getRes().expireNotice.clear(funcIds);
    }
}
